package br.net.woodstock.tickettoride.api.jee6.client.impl;

import javax.ejb.EJB;
import javax.ejb.Local;
import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;

import br.net.woodstock.tickettoride.api.client.TicketServiceWS;
import br.net.woodstock.tickettoride.api.client.common.AbstractTicketServiceWS;
import br.net.woodstock.tickettoride.api.manager.ApplicationService;
import br.net.woodstock.tickettoride.api.manager.SessionService;
import br.net.woodstock.tickettoride.api.manager.TicketService;

@Local(TicketServiceWS.class)
@Stateless
@WebService(name = "TicketServiceWS", serviceName = "TicketServiceWS", targetNamespace = "http://tickettoride.woodstock.net.br/ws/TicketServiceWS")
@SOAPBinding(style = Style.RPC)
public class TicketServiceWSImpl extends AbstractTicketServiceWS {

	@EJB(name = "applicationService")
	private ApplicationService	applicationService;

	@EJB(name = "ticketService")
	private TicketService		ticketService;

	@EJB(name = "sessionService")
	private SessionService		sessionService;

	@Override
	@WebMethod(exclude = true)
	public ApplicationService getApplicationService() {
		return this.applicationService;
	}

	@Override
	@WebMethod(exclude = true)
	public TicketService getTicketService() {
		return this.ticketService;
	}

	@Override
	@WebMethod(exclude = true)
	public SessionService getSessionService() {
		return this.sessionService;
	}

}
